home *** CD-ROM | disk | FTP | other *** search
/ PCNet 1998 June / PCnet Haziran 1998.iso / Internet / Tools / ANJAVA10.ZIP / DATA1.CAB / Program_Executable_Files / Applet / flozoids / flozoids.txt < prev    next >
Encoding:
Text File  |  1998-04-23  |  6.7 KB  |  125 lines

  1.  
  2.           Anfy Flozoids - Copyright (C) by Fabio Ciucci 1997/98
  3.  
  4.  
  5. This applet can animate in realtime an artificial life algorithm, where
  6. some "flozoids" are flying (or swimming) around.
  7. I have to thank Jeff Cragg and Alex Vulliamy for this idea.
  8. Remember that are needed both flozoids.class and Lware.class.
  9. You must upload these 2 .class files and insert the <applet> tag on your
  10. html document to add this applet to your page.
  11. This applet is fully parametrized, so you can change many things to
  12. adapt the effect to your pages and purposes.
  13. Here an example of what you have to write in the html (the things anfter
  14. the ; are comments with min-max values acceptet):
  15.  
  16.  
  17. <applet code=flozoids.class width=500 height=100>  ; Name, Width, Height
  18. <param name=credits value="Applet by Fabio Ciucci (www.anfiteatro.it/java.html)">
  19. <param name=regcode value="NO">         ; Register code (if you have it)
  20. <param name=reglink value="NO">         ; URL where go optionally when clicked
  21. <param name=regnewframe value="YES">    ; Reglink opened in new frame?
  22. <param name=regframename value="_blank"> ; Name of new frame for reglink
  23. <param name=statusmsg value="Flozoids applet">  ; Statusbar message
  24. <param name=numfloz value="50">          ; Number of flozoids
  25. <param name=flozdistance value="200">    ; Distance allowed between flozoids
  26. <param name=tocenter value="20">         ; How flozoids tends to go to center
  27. <param name=acceleration value="30">     ; Acceleration of flozoids
  28. <param name=speed value="5">            ; Speed of flozoids
  29. <param name=sidebouncing value="80">    ; Side bounding factor
  30. <param name=fheads value="YES">         ; Flozoids have heads? ("YES", "NO")
  31. <param name=overtext value="YES">       ; Flozoids go over text? ("YES", "NO")
  32. <param name=backimage value="NO">       ; Background image (it's name or "NO")
  33. <param name=backR value="0">            ; Background color (red component)
  34. <param name=backG value="0">            ; Background color (green component)
  35. <param name=backB value="0">            ; Background color (blue component)
  36. <param name=flozR1 value="255">         ; Flozoids color1 (red component)
  37. <param name=flozG1 value="240">         ; Flozoids color1 (green component)
  38. <param name=flozB1 value="240">         ; Flozoids color1 (blue component)
  39. <param name=flozR2 value="60">          ; Flozoids color2 (red component)
  40. <param name=flozG2 value="70">          ; Flozoids color2 (green component)
  41. <param name=flozB2 value="80">          ; Flozoids color2 (blue component)
  42. <param name=textscroll value="flozscr.txt"> ; File for scrolltext or "NO"
  43. <param name=textoffset value="140">         ; Txtscroll y offset
  44. <param name=textspeed value="1">          ; Txtscroll speed
  45. <param name=textfont value="Arial">       ; Txtscroll font name
  46. <param name=textbold value="NO">          ; Txtscroll bold ("YES" or "NO")
  47. <param name=textsize value="24">          ; Txtscroll font size
  48. <param name=textshadow value="YES">       ; Txtscroll shadow ("YES" or "NO")
  49. <param name=TextColR value="200">         ; Txtscroll color (red component)
  50. <param name=TextColG value="255">         ; Txtscroll color (green component)
  51. <param name=TextColB value="190">         ; Txtscroll color (blue component)
  52. <param name=TextSColR value="20">         ; Txtscroll shadow col. (red c.)
  53. <param name=TextSColG value="20">         ; Txtscroll shadow col. (green c.)
  54. <param name=TextSColB value="50">         ; Txtscroll shadow col. (blue c.)
  55. <param name=TextJumpAmp value="0">        ; Txtscroll jump aplitude
  56. <param name=TextJumpSpd value="0">        ; Txtscroll jump speed
  57. <param name=TextSineAmp value="0">        ; Txtscroll sineshape amplitude        
  58. <param name=TextSineSpd value="0">        ; Txtscroll sineshape movement
  59. <param name=TextSineAngle value="0">      ; Txtscroll sineangle / pixel
  60. <param name=memdelay value="1000">        ; Memory deallocation delay
  61. <param name=priority value="3">           ; Task priority (1..10)
  62. <param name=MinSYNC value="10">           ; Min. milliseconds/frame for sync
  63. Sorry, your browser doesn't suppor Java.  ; Message for no java browsers.
  64. </applet>                                 ; End of applet tag
  65.  
  66.                              ---------
  67.  
  68.  
  69. Here detailed instructions about how to change parameters:
  70.  
  71. The credits parameter can't be changed otherwise the applet will not work.
  72.  
  73. To activate the reg parameters read the shareware registration notes.
  74. In the "regcode" parameter you have to place the registration code you
  75. purchase from the author. If it is correct and the applet is run from the
  76. registered domain name, you can use "reglink" parameter, where you can specify
  77. an URL where bring user when the applet is clicked.
  78. If you set to "YES" regnewframe, you can specify a frame where load the
  79. reglink:
  80.  
  81. "_blank"  : To load the link in a new blank unnamed browser window.
  82. "_self"   : To load the link into the same window the applet occupies.
  83. "_parent" : To load the link into the immediate FRAMESET parent.
  84. "_top"    : To load the link into the top body of the window.
  85.  
  86. Otherwise the frame name, for example "myframe1".
  87.  
  88. The size of the applet is determined by width and height tags.
  89.  
  90. The number of flozoids is determined by "numfloz" parameter: more flozoids
  91. mean slower execution.
  92.  
  93. The behaviour of flozoids can be altered with these parameters:
  94.  
  95. "flozdistance" : it determine how much a flozoid can go far from others
  96. "tocenter" : it determine the tendence to go to center of screen
  97. "acceleration" : it determine the acceleration power of flozoids
  98. "speed" : it determine the max speed a flozoid can reach
  99. "sidebouncing" : it determine the intensity of bouncing when edges of the
  100.                  applets are reached.
  101. "fheads" : it determine if flozoids have heads or not.
  102. "overtext" : it determine if flozoids can overwrite textscroll.
  103.  
  104. You can change the colours for best results over your web page, the RGB
  105. values are same as HTML tags, but in decimal values.
  106.  
  107. Use backR,backG,backB to change background color.
  108.  
  109. If you want to display an image in the background, place it's name in the
  110. place of "NO" at backimage parameter (for example "back.jpg").
  111. The only requirement is that the background image must be same size as the
  112. applet to completely cover it.
  113.  
  114. About flozoids color, you can choose the first and last color of a gradient
  115. that will be spread over all the flozoids: flozR1,flozG1,flozB1 for first
  116. color, flozR2,flozG2,flozB2 for last color of gradient.
  117. Examples: to make ALL the flozoids white, place 255 as value for all the
  118. flozR1,flozG1,flozB1 and flozR2,flozG2,flozB2.
  119. To make flozoids coloured from black to white (all the intermediate grays),
  120. place a value of 255 for flozR1,flozG1,flozB1 and a value of 0 for second
  121. color: flozR2,flozG2,flozB2.
  122. Offcourse you can make rainbows (from red to blue, etc.).
  123.  
  124.  
  125.